<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org" >
<head>
  <title>用户注册</title>
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
  <style>
    body {
      background-color: #11A1FD;
    }
    .login-container {
      width: 500px;
      margin: 0 auto;
      margin-top: 200px;
      padding: 20px;
      background-color: #fff;
      border: 1px solid #ccc;
      border-radius: 5px;
    }
    .login-container h2 {
      text-align: center;
      margin-bottom: 30px;
    }
    .login-container .form-group {
      margin-bottom: 15px;
    }
    .login-container .form-group button{
      width: 100px;
    }
    .login-container .form-group label {
      display: block;
      font-weight: bold;
    }
    .login-container .form-group input {
      width: 100%;
      padding: 5px;
      font-size: 16px;
      border-radius: 3px;
      border: 1px solid #ccc;
    }
    .login-container .form-group .error-message {
      color: red;
      font-size: 14px;
    }
    .login-container .form-group .admin-link {
      margin-top: 10px;
      text-align: right;
    }
  </style>
</head>
<body>
<div class="container">
  <div class="row justify-content-center">
    <div class="col-md-6">
      <div class="login-container">
        <p style="color: red" th:if="${flag=='ok'}">注册完成，点击下方链接去登录</p>
        <a th:href="@{/author/user/loginPage.do}" th:if="${flag=='ok'}">去登录</a>
        <p style="color: red" th:if="${flag=='error'}">注册失败</p>
      </div>
    </div>
  </div>
</div>

<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.2/js/bootstrap.min.js"></script>
</body>
</html>
